package wo.esys.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import wo.esys.po.Menu;
import wo.esys.po.Role;

@Mapper
public interface MenuMapper {
	
	void create (Menu m);
	
	List<Menu> findAllByParentId (@Param("parentId")String parentId);
	
	List<Menu> findAllBySearch (@Param("search") String search);
	
	List<Menu> findAllByParentIdAndRoles(@Param("parentId")String parentId, @Param("roles") List<Role> roles);
}
